#ifndef TEXTURE_H
#define TEXTURE_H

#include "TGA.h"

#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#include <GLUT/GLUT.h>
#else
#include <GL/glew.h>
#include <GL/glut.h>
#endif

class Texture
{
protected:
    TGA image;
    GLuint texID;

protected:
    void PrepareTex();
public:
    Texture(const char *filename);
    ~Texture();
    inline GLuint TexID() {return texID;}
};

#endif // TEXTURE_H
